package com.example.personnel_oa.service.impl;
//service 接口 服务层
import com.example.comment_oa.pojos.Recruits;
import com.example.comment_oa.pojos_vo.zff.RecruitsVo;
import com.example.personnel_oa.mapper.RecruitsMapper;
import com.example.personnel_oa.service.RecruitsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

/**
* @author HUAWEI
* @description 针对表【recruits】的数据库操作Service实现
* @createDate 2022-10-20 14:56:12
*/
@Service
public class RecruitsServiceImpl implements RecruitsService {
        @Autowired//Spring对组件自动装配（Spring通过依赖注入通过IOC容器中各种组件的依赖关系赋值）的方法
        RecruitsMapper recruitsMapper;

        @Override
        public List<Recruits> Methods_rec(){
            return recruitsMapper.Methods_rec();
        }
        @Override
        public List<Recruits> allRecruits(){
            List<Recruits> sysEmployees = recruitsMapper.allRecruits();
            return sysEmployees;
        }
        @Override
        public List<Recruits> allrecruits(int recId){
            return  recruitsMapper.allrecruits(recId);

        }

        //查询入职员工详情
    @Override
    public List<Recruits> allRecruits2(int recId) {
        List<Recruits> recruits = recruitsMapper.allRecruits2(recId);
        return recruits;
    }

    //才人入职成功后修改入职状态
    @Override
    public int upstate(int recId,int empId) {
        int upstate = recruitsMapper.upstate(recId,empId);
        return upstate;
    }

    //查询已入职记录
    @Override
    public List<Recruits> allRecruits3(RecruitsVo recruitsVo) {
        List<Recruits> recruits = recruitsMapper.allRecruits3(recruitsVo);
        return recruits;
    }

    //新增待入职信息
    @Override
    public int addrecruits(Recruits recruits) {
        int addrecruits = recruitsMapper.addrecruits(recruits);
        return addrecruits;
    }

}




